package me.caofeng.service.api;

import me.caofeng.enums.ItemStatus;
import me.caofeng.enums.Role;
import me.caofeng.pojo.Category;
import me.caofeng.pojo.Response;

import java.util.List;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.service.api
 * @Description: 分类服务
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-19 22:03
 * @Version: V1.0
 */
public interface ICategoryService {
    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/19 22:04
     * @Description: 获取分类列表
     */
    Response<List<Category>> getCategories(Integer id,Integer status,Role role);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/19 22:40
     * @Description: 获取分类详情
     */
    Response<Category> getCategory(Integer parentId, Integer id,Integer status ,Role role);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/20 0:14
     * @Description: 添加商品分类节点
     */
    Response<Category> addCategory(Category category);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/20
     * @Description: 删除商品分类
     */
    Response<Category> deleteCategory(Integer id);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/20 15:31
     * @Description: 修改分类名字
     */
    Response<Category> updateCategoryName(Integer id, String name);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/20 15:36
     * @Description: 修改分类的分类
     */
    Response<Category> updateCategoryParentId(Integer id, Integer parentId);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/20 16:01
     * @Description: 更新分类状态
    */
    Response<Category> updateCategoryStatus(Integer id, Integer status);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/20 16:02
     * @Description: 更新分类的排序规则
    */
    Response<Category> updateCategorySortOrder(Integer id ,Integer sortOrder);



}
